﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedGenomics.Domain
{
    public class TreeNode<T>
    {
        #region Constructors

        public TreeNode(T value)
        {
            this.Value = value;
            this.ChildNodes = new List<TreeNode<T>>();
        }

        #endregion

        #region Properties

        public T Value { get; private set; }
        public IList<TreeNode<T>> ChildNodes { get; private set; }

        public bool IsLeaf
        {
            get { return this.ChildNodes.Count == 0; }
        }

        #endregion
    }
}
